package com.ruoyi.tb.lmt.mapper;

import com.ruoyi.tb.lmt.domain.TEquipment;
import com.ruoyi.tb.lmt.domain.vo.EquipmentVo;
import com.ruoyi.tb.lmt.domain.vo.TEquipmentVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.tb.lmt.domain.vo.TbDistVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 高价互换件管理Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-25
 */
@Mapper
public interface TEquipmentMapper extends BaseMapperPlus<TEquipmentMapper, TEquipment, TEquipmentVo> {

    List<TEquipmentVo> selectEquipment(@Param("equipmentTypecode") String equipmentTypecode,
                                       @Param("lmtNumber") String lmtNumber, @Param("lmtLength") String lmtLength,
                                       @Param("stockStation") String stockStation, @Param("status") String status,
                                       @Param("dateType") String dateType, @Param("repairStartDate") Date repairStartDate,
                                       @Param("repairEndDate") Date repairEndDate,
                                       @Param("equipmentCode")String equipmentCode);

    List<TbDistVo> selectDist(String equipmentTypecode);

    List<EquipmentVo> selectEquipmentByLmtNumber(String lmtNumber);

    List<TEquipmentVo> selectEquByLmtNumber(String lmtNumber);

    String selectAllCount();

    TEquipmentVo selectByCode(@Param("code") String code);
}
